
import { http } from '../utils/http'

import type { BookingInfo } from './../types/booking';
export const commitBooking = (bookingInfo: BookingInfo) => {
  return http({
    method: 'POST',
    url: `/app/booking/commit`,
    data: bookingInfo
  })
};

export const getBookingList = () => {
  return http({
    method: 'GET',
    url: `/app/booking/get`
  })
};
export const deleteBookingById = (bookingId:number) => {

  return http({
    method: 'DELETE',
    url: `/app/booking/delete/${bookingId}`
  })
};
